home *** CD-ROM | disk | FTP | other *** search
/ BMUG PD-ROM 1995 Fall / PD-ROM F95.toast / Business / FileMaker / CityStateZip Splitter ƒ / CityStateZip Splitter (.txt) next >
Encoding:
FileMaker Pro Database  |  1994-06-18  |  38.5 KB  |  394 lines  |  [FMPR/FMPR]

  1. nHBAM2001MAY84
  2. CityStateZip Splitter:*
  3. 01788
  4. 10036
  5. 20001
  6. 200124567
  7. 22212
  8. 22219
  9. 22310-1761
  10. 37830
  11. 38301
  12. Alexandria
  13. Arlington
  14. Bangor
  15. Jackson
  16. Ridge
  17. Vandalia
  18. Washington
  19. Alexandria
  20. Arlington
  21. Bangor
  22. Jackson
  23. Ridge
  24. Vandalia
  25. State
  26. 6/18/94
  27. ADDRESS
  28.     CITYSTATE
  29. CITYSTATEZIP
  30. COMPANY
  31. CONSULTANT
  32. EMAIL
  33.     ERRORTEST
  34. FM USE
  35. FM VERSIONS
  36. MACS IN OFFICE
  37. MODEM
  38. NOZIP
  39. PHONE
  40. SERIAL #
  41. SOURCE
  42. STATE
  43. StateB
  44. AZUPPER ( Left ( Trim ( Middle (CityStateZip, Position (CityStateZip, "," , 0) + 1, 10)),2))
  45. IF ( NoZip = "No Zip" , "00000" , IF ( Left ( Right (CityStateZip, 5 ) , 1) = "-", Right ( Trim (CityStateZip), 10), Right ( Trim (CityStateZip), 5)))
  46. No Zip
  47. 00000&
  48. Serial #B
  49. ial #B
  50. ial #B
  51. NoZipB
  52. AhIF ( Length ( Trim (Middle ( CityStateZip, Position (CityStateZip, ",", 1 ) , 99))) < 7 , "No Zip" , "")
  53. No Zip'
  54. A    ErrorTestB
  55. IF ( (Length ( TextToNum (zip)) < 5 AND Left (Zip,1)  
  56.  "0" ) OR Zip = "00000" OR (Length (Int ( Right (CityStateZip, 10))) > 5 AND Length (Zip) < 10), "Zip Code", IF ( Position (CityStateZip, ",", 0) < 1, "No 
  57. J , If (State & null = null OR Length ( Trim (State)) < 2 , "State", ""))))
  58. Serial #
  59. CityStateZip
  60. Clean Out Database
  61. Instructions
  62. Find Problems
  63. Show All
  64. Problems
  65. Problems
  66. CreditB
  67. 37830-9999E
  68. 6W#P0Hn
  69. PublicB
  70.     Helvetica
  71. Geneva
  72. User Dictionary
  73. PBF`: n
  74. Comma
  75. State
  76. Missouri
  77. Nebraska
  78. Tennessee
  79. Unknown
  80. Virginia
  81. tate'
  82. State'
  83. STATEFULLNAME
  84. YOURZIP
  85. No comma&
  86. City&
  87. State'
  88. Main Dictionary
  89. 37830
  90. Ridge
  91. DAZZLING
  92. E    DATABASES
  93. The Jackson-Crockett Company
  94. FAX: (703) 922-6018
  95. E-mail: Nash Cat@aol.com
  96. FileMaker Pro Specialists
  97. Member, Claris Solutions Alliance
  98. Instructions
  99. InstructionsB
  100. nullB
  101. NameB
  102. CompanyB
  103. AddressB
  104. A    CityStateB
  105. YourZipB
  106. Splitter
  107. Credit
  108. Instructions
  109. Survey
  110. SplitterB
  111. To Splitter
  112. Clean Out Database
  113. Import & Lookup
  114. Find Problems
  115. Print Instructions
  116. Print Survey
  117. Find Problems
  118. Find Problems
  119. Print Instructions
  120. Clean Out Database
  121. Print Survey
  122. Find Problems
  123.     Helvetica
  124. Geneva
  125. To Splitter
  126. Notes
  127. 1. The parsing is based on a series of calculations. The presence of a comma between the city and state in the original data is critical. An absent comma will be flagged as a problem. The calculations wiB
  128. ll tolerate up to eight spaces between the comma and the state name.
  129. 2. This Splitter will accommodate five- or nine-digit ZIP Codes. More than five digits without a hyphen will raise a Problem flag.
  130. 3. This 
  131. InstructionsB
  132. DARING
  133. DASHING
  134. DARING
  135. Virginia
  136. New York, NY 2234B
  137. New YorkC
  138.  2234E
  139. Zip Code[
  140. New York
  141. Arlington, V 22219B    ArlingtonC
  142. 22219E
  143. State[
  144. UNKNOWN
  145. Jackson, TNN 38301B
  146. JacksonC
  147. 38301E
  148. 5[    Tennessee
  149. Comma
  150. State
  151. Missouri
  152. Nebraska
  153. Tennessee
  154. Unknown
  155. Virginia
  156. 6W#P0Hn
  157. PublicB
  158.     Helvetica
  159. Geneva
  160. 6W#P0Hn
  161. PublicB
  162.     Helvetica
  163. Geneva
  164. Nebraska
  165. 6W#P0Hn
  166. PublicB
  167.     Helvetica
  168. Geneva
  169. Washington
  170. 00000
  171. 01788
  172. 10036
  173. 20001
  174. 22212
  175. 22219
  176. 22310-1761
  177. 24567
  178. 37830
  179. 38301
  180. Comma
  181. State
  182. Missouri
  183. Nebraska
  184. Tennessee
  185. Unknown
  186. Virginia
  187. 0-999
  188. 37111
  189. 37830-9999
  190. To Splitter
  191. PublicB
  192.     Helvetica
  193. Geneva
  194. Print Instructions
  195. PublicB
  196.     Helvetica
  197. Geneva
  198. Import & Lookup
  199. 6W#P0Hn
  200. PublicB
  201.     Helvetica
  202. Geneva
  203. No Comma&
  204. City&
  205. State'
  206. y" , If (State & null = null OR Length ( Trim (State)) < 2, "State", ""))))
  207. No Comma&
  208. City&
  209. State'
  210. 5. The built-in error detection (as reflected in the Problems column) isn
  211. t foolproof. Please edit carefully if absolute accuracy is important.
  212. 6. This Splitter will work without the States.FM database, butF
  213.  it will not be as effective at spotting faulty state abbreviations and you won
  214. t have the option of using unabbreviated state names.
  215. Splitter won
  216. t handle foreign addresses. Mailing conventions vary too much from country to country. In these cases, you
  217. ll need to split the addresses manually in the original database. Do that after you have fD
  218. inished splitting the domestic addresses here. Otherwise, your labor might be wiped out in the process.
  219. 4. If you are familiar with FileMaker Pro, you may modify the layouts and scripts to your heart
  220. s content
  221.  to your heart
  222. s content.
  223. Instructions
  224. 1. In your original database, create four fields: Serial Number, City, State and Zip. The City, State and Zip fields should be Lookups based on the Serial Number. The Lookup file will be this SpliB
  225. tter.
  226. 2. Delete all data currently in this Splitter.
  227. 3. Import two fields into this Splitter:
  228.  The original field containing the city, state and Zip Code.
  229.  The Serial Number.
  230. 4. As you import the data, the
  231.  Splitter will parse the city, state and Zip. Afterwards, it will automatically look up all of the states in the States.FM database that should accompany this Splitter. This will spot any invalid state names. ID
  232. t also puts the full state name in a field called StateFullName, which gives you the option of using unabbreviated state names in your original database if you choose.
  233. 5. Review the parsed data. This Splitter 
  234. original database.
  235. will flag many errors in the right-hand column. Edit the original data in the CityStateZip column. If you get it right there, the Splitter will parse it correctly.
  236. 6. Return to your original database. Click inF
  237.  the Serial Number field and then select Relookup from the Edit menu. FileMaker will then put the parsed data into the new fields of your original database.
  238. se. Find all 
  239. Print These Instructions
  240. The Jackson-Crockett Company
  241. FAX: (703) 922-6018
  242. E-mail: Nash Cat@aol.com
  243. FileMaker Pro Specialists
  244. Member, Claris Solutions Alliance
  245. EDIT IN THIS COLUMN
  246. Credit
  247. Import
  248. State Unabbreviated
  249. mber, Claris Solutions Alliance
  250. Clean Out Database
  251. PublicB
  252.     Helvetica
  253. Geneva
  254. SurveyB
  255. CityStateZipB
  256. CityB
  257. AATrim ( Left (CityStateZip, Position (CityStateZip, "," , 0) - 1))
  258. eZip, "," , 0) - 1))
  259. FM VersionsB
  260. Macintosh
  261. Windows
  262. Macs In OfficeB
  263. ConsultantB
  264. Instructions
  265. Survey
  266. SplitterB
  267. Washington,       DC 20001B
  268. WashingtonC
  269. 20001E
  270. , TN 22212C
  271. 22212E
  272. City[    Tennessee
  273. Vandalia, MOB
  274. VandaliaC
  275. 00000E
  276. No ZipH
  277. Zip Code[
  278. Missouri
  279. New York NY 10036C
  280. 10036E
  281. No comma[
  282. Nebraska
  283. Bangor, 01788B
  284. BangorC
  285. 01788E
  286. State[
  287. UNKNOWN
  288. New York,  NY 200124567B
  289. New YorkC
  290. 24567E
  291. Zip Code[
  292. New York
  293. 23456[
  294. Nebraska
  295. FM UseB
  296.     A A lot
  297. A little bit
  298. Just learning
  299. SourceB
  300. America Online
  301. Claris
  302. Credit
  303. Instructions
  304. Survey
  305. SplitterB
  306. E"How much do you use FileMaker Pro?
  307. EdDo you currently have adequate support (in-house or from a consultant) for your FileMaker databases?
  308. City, State
  309. Address
  310.  Your Company
  311.  Your Name
  312. Source
  313. Oak Ridge, TN 37830B    Oak RidgeC
  314. 37830E
  315. 1[    Tennessee
  316. Alexandria, VA 22310-1761B
  317. AlexandriaC
  318. 22310-1761E
  319. New York, NY 2234B
  320. New YorkC
  321.  2234E
  322. Zip Code
  323. Arlington, V 22219B    ArlingtonC
  324. 22219E
  325. State
  326. Jackson, TNN 38301B
  327. JacksonC
  328. 38301E
  329. Survey
  330. ELYour only obligation for using this Splitter is to complete a simple survey.
  331.  Copyright 1994, The Jackson-Crockett Co. All Rights Reserved. CityStateZip Splitter may be distributed without charge as long as this credit layout is included.
  332. Print Survey
  333. 6W#P0Hn
  334. PublicB
  335.     Helvetica
  336. Geneva
  337. E-Which version(s) of FileMaker Pro do you use?
  338. City, State
  339. Address
  340. Company
  341. E    Your Name
  342. E0Where did you obtain this CityStateZip Splitter?
  343. EXYour only obligation for using this Splitter is to complete and return the survey below.
  344. Thank you!
  345. Proceed
  346. Proceed
  347. ModemB
  348.     A3No modem
  349. 1200 baud
  350. 2400 baud
  351. 9600 baud
  352. 14400 baud +
  353. PhoneB
  354. StateFullNameB
  355. 5:    States.FMbK
  356. UNKNOWN
  357. emailB
  358. missing hyphen'
  359. Pro 2.0F!
  360. Pro 2.0 - 2.1I
  361. Main Dictionary
  362. Washington@
  363. STATEFULLNAME
  364. Print Survey
  365. AoPlease FAX to:
  366. (703) 922-6018
  367. Or mail to:
  368. The Jackson-Crockett Company
  369. P.O. Box 9178
  370. Arlington, VA  22219-1178
  371. Phone
  372. E-mail
  373. Relookup States
  374. 6W#P0Hn
  375. PublicB
  376.     Helvetica
  377. Geneva
  378. Splitter
  379. Credit
  380. Instructions
  381. Survey
  382. SplitterB
  383. Thank you!
  384. Proceednswer based on the fastest.)
  385. Thank you!
  386. Proceed
  387. EUDo you have a modem? (If you have more than one, please answer based on the fastest.)
  388. comma" , If (City & null = null OR Length (City) < 2 , "City" , If (State & null = null OR Length ( Trim (State)) < 2 OR StateFullName = "Unknown" , "State", ""))))
  389. 00000
  390. Zip Code&
  391. No comma&
  392. City&
  393. Unknown
  394.